<?php

namespace tests\Unit;

use PHPUnit\Framework\TestCase as BaseTestCase;
use think\App;
use think\Container;

class TestCase extends BaseTestCase
{
    protected $app;

    protected function setUp(): void
    {
        parent::setUp();
        $this->app = new App();
        Container::setInstance($this->app);
    }

    protected function tearDown(): void
    {
        $this->app = null;
        Container::getInstance()->flush();
        parent::tearDown();
    }
} 